﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Barry.BarbeSystem.Business
{
    public interface IRepository<T> where T:class
    {
        IQueryable<T> GetAll();

        object Save(T entity);

        T Get(object id);

        void Update(T entity);

        void Delete(T entity);

        int ListCount();


    }
  
}